package com.harmontronics.hanma.paas.paas.domain.iam.repository.mapper;

import com.harmontronics.hanma.paas.paas.domain.iam.entity.PermActionList;
import com.harmontronics.hanma.paas.paas.domain.iam.repository.po.HmRolePermPO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 角色权限表
 * 
 * @author paas-generator
 * @email paas-generator@harmontronics.com
 * @date 2021-04-07 10:35:44
 */
@Mapper
public interface HmRolePermMapper extends BaseMapper<HmRolePermPO> {

    List<PermActionList> selectPermActionWithRoleId(@Param("roleId") Long roleId);

    List<PermActionList> selectAllPermActions();

    @Select("select id from hm_role_perm where role_id = #{roleId}")
    List<Long> selectRolePermIds(Long roleId);
	
}
